import VueRouter from "vue-router";
import Vue from 'vue';
// import Hone from "../components/Hone.vue";
// import about from "../components/about.vue";
// import user from "../components/user";
Vue.use(VueRouter);//安装插件到vue
const Hone=()=>import('../components/Hone.vue')//路由懒加载
const about=()=>import('../components/about.vue')
const Formdata=()=>import('../components/Formdata')
const login=()=>import('../views/login')
Vue.use(VueRouter);//安装插件到vue
const routes=[
  {
    path: '/form',
    component: Formdata
  },
  {
    path: '/',
    component:login
  },
  {
    path:'/hone',
    component:Hone
  },
  {
    path: '/about',
    component: about
  }
]
const  router=new VueRouter({
  routes,
  mode:'history'
})
export default router